Once the keys for the SSH server are generated and the server has been started successfully, you can connect the SSH client. You are allowed to open multiple simultaneous sessions of the SSH client.
To connect to the XPS debug port using SSH:
Launch the SSH client (such as PuTTY).
From the SSH client command prompt, run this command:
ssh [username]@[IP of XPS server] -p 13002 -T
[username] is your XPS username. If you omit the username in the SSH command, it will automatically take your local system username, so be sure to include it.
[IP of XPS server] is the IP address of the XPS server.
-p explicitly sets the port for the SSH call, followed by the port number. The XPS debug port number is 13002.
-T flags the SSH server that we don't want a new "pseudo-terminal." Otherwise if you omit this flag without having defined any pseudo-terminal options, you will receive a "PTY allocation request failed on channel 0" error. This will cause the cmd window to behave erratically (like invisible typing or double cursors).
Other options:
-l followed by a username allows you to supply a username for the SSH command. For example,
ssh [username]@[IP of XPS server] -p 13002 -T -l admin
If your XPS username contains a space, enclose the username in double quotes (" ").
Enter the password for the corresponding username and press Enter. The typing will not be displayed for the password.
If you have enabled N4 authentication for XPS, the password is required.
When connecting the SSH Client to the SSH Server for the first time, you will be asked to add the server's fingerprint in the known_host file.
Type yes and proceed.
When you have logged in successfully, you will see the xps@[IP address]> prompt.
When an SSH client establishes a connection with a server successfully, it stores the identity of the server in a file known_host in the directory C:\Users\[your_username]\.ssh. This known_host file keeps track of all the SSH servers that the user has connected to by storing the public key against the hostname or IP address of the server.